<template>
    <div>
        <h2> Ts Input</h2>

        <input type="text" :value="title">
        <hr>
        {{ title }}
    </div>
</template>
<script>
export default {
    props: ['title'],
    mounted() {
        this.fn();
    },
    data() {
        return {
            tsTitle: 'hello lili'
        }
    },
    methods: {
        fn() {
            this.$emit('sendtitle', this.tsTitle)
        }
    }
}
</script>